<?php
	class GtkProStatusBar extends GtkVBox
	{
		private $label;
		private $hbox;

		public function __construct()
		{
			parent::__construct();

			// Cria a parte de baixo horizontal
			$this->hbox = new GtkHBox();

			// Cria um label
			$this->label = new GtkLabel("");
			$this->label->set_alignment(0, 1);
		
			// Adiciona o label
			$this->hbox->pack_start($this->label, TRUE);

			// Adiciona o separador e o hbox no vbox
			$this->pack_start(new GtkHSeparator(), FALSE);
			$this->pack_start($this->hbox, TRUE, TRUE);
		}

		public function add($child)
		{
			$this->hbox->pack_start($child, FALSE);
		}
		
		public function set_text($text)
		{
			$this->label->set_text($text);
		}
	}
